-- town1 - "The Capital"

function autoexec()
  set_progress(P_EARLYPROGRESS, 1);
  refresh()
end

function refresh()
  if (get_treasure(0) == 1) then
    set_mtile(63,27,265);
  end
  if (get_progress(P_START) == 0) then
    set_progress(P_START,1);
  end
  if (get_progress(P_WARPSTONE) == 1) then
    set_ent_active(1,0);
    set_ent_active(3,0);
  end
end

function postexec()
  return
end

function zone_handler(zn)
  if (zn == 1) then
    change_map("main",132,30,132,30);

  elseif (zn == 2) then
    change_map("main",132,30,132,30);

  elseif (zn == 3) then
    change_map("main",132,30,132,30);

  elseif (zn == 4) then
    change_map("main",132,30,132,30);

  elseif (zn == 5) then
    change_map("main",132,30,132,30);

  -- elseif (zn == 6) then

  elseif (zn == 7) then
    thought(HERO1," Why should I climb over the wall when I can walk through the gate?");

  elseif (zn == 8) then
    thought(HERO1," The guards would see me climb the wall.");

  elseif (zn == 9) then
    thought(HERO1," You look into the water, and see a reflection of a rather frightening looking hero.");

  elseif (zn == 10) then
    change_map("main",132,30,132,30);

  elseif (zn == 11) then
    change_map("castle",20,42,21,42);

end
    end